Client Stub
A client stub function has an exact interface as the original function. However, the body of the function contains as little code as possible which in turn makes calls to the IPC code and IFC library.
For the add example, the client stub function would look like
int add(a, b) int a; int b; { /* * AccordSTAR libifc and add_xdr calls to * send a and b as a request and receive an * int as a response. * * the result returned is an int */ }and would be placed in a file called add_clnt.c.
AccordSTAR Generator normally compiles the generated client stub and then deletes the stub source code. For heterogeneous networking environment, you can pass in a flag which will cause it to generate source code only. The code can then be compiled as a separate step.
AccordSTAR generated code must not be modified in any way.